package com.jumper.property.comparer.core.pattern;

public class DefaultDiffPattern implements DiffPattern {

    @Override
    public String getPropertyDiffPattern() {
        return "${property}由【${before}】修改成【${after}】";
    }

    @Override
    public String getCombinationJoinDiffPattern() {
        return " - ";
    }

    @Override
    public String getCombinationDiffPattern() {
        return "${property}由【${before}】修改成【${after}】";
    }

    @Override
    public String getObjectDiffPattern() {
        return "${property}发生变更：${rowChangeData}";
    }

    @Override
    public String getArrayDiffHeaderPattern() {
        return "${property}发生变更：";
    }

    @Override
    public String getArrayDiffBodyPattern(boolean showSuffix) {
        return "${property},${rowChangeMode}【${unionValues}】" + (showSuffix ? ",变更内容: ${rowChangeData}" : "");
    }

    @Override
    public String getArrayAddDiffPattern() {
        return "新增行";
    }

    @Override
    public String getArrayRemoveDiffPattern() {
        return "删除行";
    }

    @Override
    public String getArrayUpdateDiffPattern() {
        return "更新行";
    }

    @Override
    public String getDiffJoinPattern() {
        return "\r\n";
    }

    @Override
    public String getInlineJoinDiffPattern() {
        return "，";
    }

    @Override
    public String getCompareObjectDisplayName() {
        return "【${unionNames}】发生变更";
    }
}
